<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>

<!DOCTYPE html>
<html>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="/vraptor-blank-project/bootstrap/css/estilo.css">
<link rel="stylesheet" type="text/css"
	href="/vraptor-blank-project/bootstrap/css/bootstrap.min.css">

<title>Editar Prato</title>

</head>
<body>

<div class="jumbotron" id="jumbotron">
<h1>Editar Pratos</h1>
</div>
<div class="container">
<div class="form-horizontal col-md-4 col-sm-offset-4">
	<div class="panel panel-default">
	<div class="panel-heading"id=panel>Alterar Prato</div>
	<div class="panel-body">

	<form action="${linkTo[PratoController].save}" method="post" class="col-md-10 col-md-offset-1">
		<div class="form-group">
	
		<input class="form-control" type="hidden" name="prato.idPrato" value="${prato.idPrato}"/>
		</div>
		<div class="form-group">
		<label>Nome</label>
		<input class="form-control" name="prato.nomePrato" value="${prato.nomePrato}" placeholder="Novo Nome do Prato"/>
		</div>
		<div class="form-group">
		<label>Valor Calórico</label>
		<input class="form-control" name="prato.vcalorico" value="${prato.vcalorico}" placeholder="Novo valor"/>
		</div>
		<div class="form-group">
		<label>Ingredientes</label>
		<input class="form-control" name="prato.ingredientes" value="${prato.ingredientes}" placeholder="Novos ingredientes"/>
		</div>
		<input class="btn btn-primary btn-block" type="submit" value="Editar Prato" />
		<input class="btn btn-primary btn-block" type="submit" value="Cancelar" href="${linkTo[PratoController].list}">
	</form>
       
</div>
</div>
</div>
</div>

</body>
</html>